package com.kayt.cyberBar.cuser.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cuser.business.entity.po.BOrganizationStoreDepart;

public interface IOrganizationStoreDepartDao {
	BOrganizationStoreDepart findById(String storeDepartId);
	
	Integer delete(String storeDepartId);
	
	BOrganizationStoreDepart save(BOrganizationStoreDepart entity) throws SQLException;
	
	void modify(BOrganizationStoreDepart entity) throws SQLException;
	
	PageData<BOrganizationStoreDepart> findByPage(Integer pageNum,Integer pageSize,String hql, Object[] params, LinkedHashMap<String, String> orderMap) throws SQLException;
	
	public PageData<BOrganizationStoreDepart> getOrganizationStoreDepartList(LinkedHashMap<String, String> orderMap) throws SQLException;
	
	BOrganizationStoreDepart findByStoreCodeAndDepartCode(String storeCode,String departCode) throws SQLException;
	
}
